USE [BillManage]
GO


SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Bill_Cash](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[FCid] [int] NOT NULL,
	[FName] [varchar](100) NOT NULL,
	[FCName] [varchar](50) NULL,
	[FBillNo] [varchar](50) NOT NULL,
	[FVerifyCode] [varchar](80) NOT NULL,
	[FDate] [datetime] NOT NULL,
	[FRDate] [datetime] NOT NULL,
	[FSummary] [varchar](300) NULL,
	[FAmount] [decimal](18, 2) NOT NULL,
	[FMark] [varchar](500) NULL,
	[FUid] [int] NOT NULL,
	[FUName] [varchar](50) NOT NULL,
	[FVid] [int] NULL,
	[FVName] [varchar](50) NULL,
	[FCancel] [int] NOT NULL,
	[FPCount] [int] NOT NULL,
	[FBCode] [varchar](30)
 CONSTRAINT [PK_Bill_Cash] PRIMARY KEY CLUSTERED 
(
	[id] ASC,
	[FBillNo] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[Bill_Cash] ADD  CONSTRAINT [DF_Bill_Cash_FRDate]  DEFAULT (getdate()) FOR [FRDate]
GO

ALTER TABLE [dbo].[Bill_Cash] ADD  CONSTRAINT [DF_Bill_Cash_FCancel]  DEFAULT ((0)) FOR [FCancel]
GO

ALTER TABLE [dbo].[Bill_Cash] ADD  CONSTRAINT [DF_Bill_Cash_FPCount]  DEFAULT ((0)) FOR [FPCount]
GO

